﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XDL.Framework.Weapons;
using Microsoft.Xna.Framework;

namespace JumpNFight.Weapons
{
    class WeaponHitEventArgs : EventArgs
    {
        public int OwnerID
        {
            get;
            private set;
        }

        public WeaponSettings Weapon
        {
            get;
            private set;
        }

        public bool IsFireDamage
        {
            get
            {
                return Weapon.DamageType == 1;
            }
        }

        /// <summary>
        /// Velocity transmitted to the object following the blast
        /// </summary>
        public Vector2 Velocity
        {
            get;
            set;
        }

        public WeaponHitEventArgs(int ownerId,WeaponSettings weapon)
        {
            this.OwnerID = ownerId;
            this.Weapon = weapon;
        }
    }
}
